package ${vopackage};
<#if importNumberFormat || importDateTimeFormat>import org.springframework.format.annotation.*;</#if>
<#if importDateTimeFormat>import static org.springframework.format.annotation.DateTimeFormat.ISO.*;</#if>
<#if importNumberFormat>import static org.springframework.format.annotation.NumberFormat.Style.*;</#if>
public class ${class_s}Vo {
    private int page=1;
    private int rows=10;
    private String sort;
    private String order;
<#list voProperties as p>
    <#if p.anno != "">${p.anno}</#if>
    private ${p.type} ${p.name};
</#list>

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }
    
    public String getSort() {
        return sort;
    }
    
    public void setSort(String sort) {
        this.sort = sort;
    }
    
    public String getOrder() {
        return order;
    }
    
    public void setOrder(String order) {
        this.order = order;
    }
    
<#if dialect=="mysql">    
    public int getOffset() {
        return rows*(page-1);
    }
    
    public int getLimit() {
        return rows;
    }
<#elseif dialect=="oracle">    
    public int getBegin(){
        return rows*(page-1);
    }
    
    public int getEnd(){
        return rows*page;
    }
</#if>

<#list voProperties as p>
    public void ${p.setname}(${p.type} ${p.name}){
        this.${p.name}=${p.name};
    }
    public ${p.type} ${p.getname}(){
        return this.${p.name};
    }
</#list>
    
}